﻿// -----------------------------------------------------------------------
// <copyright file="CandidateSkillChecker.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace SoftServe.HrManager
{
    using System;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    internal class CandidateSkillChecker: Abstractions.SkillComparerBase
    {
        public override bool AssertSkill(Abstractions.ISkillEnumerator candidate, Models.eSkillName skill)
        {
            var mycandidate = candidate as Models.Candidate;
            foreach (var item in mycandidate.Skills)
            {
                if (item == skill)
                {
                    return true;
                }
            }
            return false;
        }
    }
}
